﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucConfirmOrderAndBooking.ascx.cs"
    Inherits="Yumcha_UcControl_ucConfirmOrderAndBooking" %>

<script language="javascript" type="text/javascript">
    function UpdateParentsLogin() {
        tb_remove();
        window.parent.location = window.parent.location;
    }
</script>

<div style="text-align: left">
    <div class="btTitle" style="text-align: left; font-size: 14px; background-color: #C6A145; padding: 7px; color: White; font-weight: bold">
        Confirm Order</div>
    <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td style="width: 70px">
            </td>
            <td>
                <table cellpadding="2" cellspacing="2" border="0">
                    <tr>
                        <td>
                            Email:
                            <asp:Label ID="lb_email" runat="server" Style="font-weight: bold; text-decoration: underline;"> </asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Date Event:
                            <asp:Label ID="lb_OrderDate" runat="server"> </asp:Label>
                        </td>
                    </tr>
                   
                    <tr>
                        <td>
                            Name :
                            <asp:Label ID="lb_name" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Mobile Phone :
                            <asp:Label ID="lb_phone" runat="server"></asp:Label>
                        </td>
                    </tr>
                 
                </table>
            </td>
        </tr>
    </table>
    <div class="btTitle" style="text-align: left; font-size: 14px; background-color: #C6A145; padding: 7px; color: White; font-weight: bold">
       Order Detail</div>
    <asp:GridView ID="grdShoppingCart" runat="server" AutoGenerateColumns="False" CellPadding="10" style="margin-top: 10px"
        CssClass="grd">
        <Columns>
            <asp:TemplateField HeaderText="Number">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 %>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="true" Width="120px"></ItemStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Menu Name">
                <ItemTemplate>
                    <%# Eval("Menu.MenuName")%></ItemTemplate>
                <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="true" Width="305px"></ItemStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Price">
                <ItemTemplate>
                    <%# double.Parse(Eval("Price").ToString()).ToString("c")%>
                </ItemTemplate>
                <ItemStyle Width="60" VerticalAlign="Middle" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Quantity">
                <ItemTemplate>
                    <%# Eval("Quantity") %>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Total Amount">
                <ItemTemplate>
                    <%# (double.Parse(Eval("Quantity").ToString()) * double.Parse(Eval("Price").ToString())).ToString("c")%>
                </ItemTemplate>
                <ItemStyle Width="90" VerticalAlign="Middle" HorizontalAlign="Right" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle CssClass="grdHeader" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle CssClass="grdAlternateRow" />
        <RowStyle CssClass="grdRow" />
    </asp:GridView>
    <asp:Panel ID="pnlCartFooter" runat="server" Height="150px" style="margin-top: 10px">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <%--<tr>
                <td style="text-align: right;" align="right">
                    Estimated Delivery Fee :
                    <asp:Label ID="lblDeliveryFee" runat="server" Text="NA" Font-Bold="true"></asp:Label>
                </td>
            </tr>--%>
            <tr>
                <td style="text-align: right; padding: 5px 0 10px 0; background-image: none; background-repeat: repeat;
                    background-color: #C6A145;" valign="middle">
                    <span style="color: #ffffff; font-weight: bold">Total Amount: </span>
                    <asp:Label ID="lblTotal" runat="server" CssClass="clsTotalPriceCart" Style="color: #FFFFFF; font-weight: bold"></asp:Label>
                    <span style="color: #FFFFFF"></span>
                </td>
            </tr>
            <caption>
                <tr>
                    <td style="padding: 10px 0 10px 0; text-align: right;">
                        <asp:UpdatePanel ID="panl" runat="server">
                            <ContentTemplate>
                                <asp:Button ID="btnBack" runat="server" CausesValidation="true" 
                                    OnClick="btnBack_Click" 
                                    Style="color: white; border-radius: 8px 0 8px 0; padding: 6px; background: none repeat scroll 0px 0px rgb(198, 161, 69);" 
                                    Text="Back" ToolTip="Back" />
                                <asp:Button ID="btnThanhToan" runat="server" Style="color: white; border-radius: 8px 0 8px 0;
                                    padding: 6px; background: none repeat scroll 0px 0px rgb(198, 161, 69);" CausesValidation="true"
                                    Text="Next" ToolTip="Next" OnClick="btnThanhToan_Click" />
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="btnThanhToan" EventName="Click" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center">
                        &nbsp;
                    </td>
                </tr>
            </caption>
        </table>
    </asp:Panel>
</div>
